import { request } from '@vipl520/utils'

const path = '/gs_gold/admin.fund_sharing/'

export function updateIncome(form) {
  return request({
    url: path + 'updateIncome',
    method: 'post',
    data: {
      form
    }
  })
}

export function getFundShareDataById(id, money = 0) {
  return request({
    url: path + 'getFundShareDataById',
    method: 'post',
    data: {
      id,
      money
    }
  })
}

export function handleFundShare(id, shareForm) {
  return request(
    {
      url: path + 'handleFundShare',
      method: 'post',
      data: {
        id,
        shareForm
      }
    },
    {
      code_success_show: true
    }
  )
}
